package com.cqjtu.eecs.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserDTO对象", description="用户")
public class UserDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户编号")
    private Integer uid;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "用户角色")
    private List<String> userRole;

    public UserDTO() {
    }

    public UserDTO(Integer uid, String username) {
        this.uid = uid;
        this.username = username;
    }

    public UserDTO(Integer uid, String username, List<String> userRole) {
        this.uid = uid;
        this.username = username;
        this.userRole = userRole;
    }
}
